package com.ttg.web.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ttg.model.pojo.VipBankInfo;

import java.time.LocalDate;
import java.util.List;


/**
 * @author zhangHongYuan
 * @description
 * @date 2023/6/8 11:19
 */
public interface VipBankInfoDao extends IService<VipBankInfo> {
    List<VipBankInfo> getByVipIdAndSettingTime(String vipId, LocalDate settingTime);

    /**
     * 获取最近时间的一条记录
     * @param vipId
     * @return
     */
    VipBankInfo getLastOneByDate(Long vipId);
    /**
     * 获取今日 为空则查询昨日
     * @param vipId
     * @return
     */
    List<VipBankInfo> getByLately(Long vipId);

    List<VipBankInfo> getByVipIdAndTime(Long vipId, LocalDate settingTime,LocalDate endTime);

    VipBankInfo getByAmountAndDate(String amount,LocalDate date);
}
